package com.enn.demo.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.enn.demo.dal.entity.SysPersonDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author kll
 * @since 2021-05-14
 */
@Mapper
public interface SysPersonMapper extends BaseMapper<SysPersonDO> {

    /**
     * 分页查询
     *
     * @param page
     * @param params
     * @return
     */
    IPage<SysPersonDO> queryPage(IPage<SysPersonDO> page, @Param("params") Map<String, Object> params);

    /**
     * 查询用户
     *
     * @param params
     * @return
     */
    List<SysPersonDO> queryPerson(@Param("params") Map<String, Object> params);

    /**
     * 软删除
     * @param params
     * @return
     */
    int removeById(@Param("params") Map<String, Object> params);
}
